//********************************************************
// Info of tower tank 
//created by tuan anh,16/01/2012
//********************************************************

#include "Object.h"
#include "QuadTree.h"
#include "CPistol.h"

class CtowerTank : public Object
{
public:
	//constructor
	CtowerTank();
	CtowerTank(LPD3DXSPRITE spriteHandler, float Scaling, CQuadTree*);
	~CtowerTank();

	CQuadTree* m_qroot;
	CSprite* _fire;
	CPistol* bullet1;
	CPistol* _shells;
	float m_fframeWidth;			//size of frame
	float m_fframeHeight;
	float m_fscaling;
	
	int m_ntankIndex;
	int timeBetweenUpdated;

	//function
	void loadSprite(LPD3DXSPRITE);
	void update(int DeltaTime, int moveCame);
	void render();
	void setRect();

	void next();

	//
	void moveTank();
	void tankFire();
	void tankFire1();
};